<%@ page language="java" import="java.util.*,pojo.*,service.*,base.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>订单提交</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Bootstrap -->
    <link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
    <link href="../bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">
    <style type="text/css">
    .container{
    width:300px;
    }  
    </style>
<script type="text/javascript" src="../jquery/jquery-1.6.1.js"></script>
<script type="text/javascript">


</script>
  </head>
  <body>
  <div class="navbar navbar-inverse navbar-fixed-top">
       <div class="navbar-inner">
           <div class="container-fluid">
                   <a class="brand" href="index.jsp">白金汉宫网上订餐</a>
              <div class="nav-collapse collapse">
         
                  <ul class="nav">
                    <li class="active">
                        <a href="#">主页</a>
                    </li>
                  </ul>
      <p class="navbar-text pull-right">
<%
        
		String username = (String)session.getAttribute( "name" );
		CartService cs= new CartService();
		if ( username == null || username == "" )
		{
%>
<a class="navbar-link" href="login.jsp">登录</a>&nbsp;&nbsp;&nbsp;<a class="navbar-link" href="regest.jsp">注册</a>
<%
} 
		    else
		        {
		              int userid=(Integer)session.getAttribute("id");
		              int cartNum=cs.getALL(userid);
			                out.println( "欢迎您! "+username  );
			                out.println("<a href='memberzone.jsp' role='button' class='btn btn-success' >个人中心</a>");
			                out.println("<a href='cartlist.jsp' data-placement='bottom' role='button' class='btn btn-warning' data-toggle='tooltip' title=''>我的购物车"+cartNum+"</a>");
			                out.println( "<a href='destroySession.jsp' role='button' class='btn btn-danger' >安全退出</a>" );
		}
%>






</p>
	   </div>   
         </div>
            </div>
              </div>
  <%
  int orderid = (Integer)session.getAttribute("orderid");
  String code = session.getAttribute("code").toString();
  OrderService os = new OrderService();
  String customerName = os.getOrderDetail(orderid).getCustomerName();
  
  
  
   %>

    <div class="row" style="margin-top:100px ;margin-left:100px;">
    <div class="span9">
    <p class="text-success" style="font-weight:bold;font-size:30px;">尊敬的<%=os.getOrderDetail(orderid).getCustomerName()%>先生/女士,您已成功预订！！！！</p>
    <div class="row">
    <div class="span6" style="margin-top:30px;"><p class="text-warning" style="font-weight:bold;font-size:20px;">请您保持您所填写的手机号码畅通，我们会在一个工作日内与您联系,如果您需要查看自己的订单，请前往个人中心查看</p></div>
    <div class="span3" style="margin-top:30px;"><img width=150 height=150  src="../images/ORDERSUCCESS.jpg"></img></div>
    </div>
    </div>
    </div>
   
    <script src="../bootstrap/js/bootstrap.js"></script>
    <script src="../bootstrap/js/bootstrap.min.js"></script>
  </body>
</html>
